package com.zff.rental.validation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

/**
 * @author HCY
 */
@Documented
@Constraint(validatedBy = StringInValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface StringIn {
    String message() default "值必须在指定范围内";

    String[] in();

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
